package com.yxlgateway.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yxlcommon.common.pojo.Menus;
import com.yxlcommon.common.pojo.RespBean;
import com.yxlcommon.common.vo.MenusVo;

import java.util.List;

public interface MenusService extends IService<Menus> {

    RespBean<List<MenusVo>> getMenusList();

    RespBean<IPage<Menus>> getMenus(Integer currentPage, Integer size, Menus menus);

    RespBean<List<Menus>> getMenusByLevel(Byte menuLevel);

    RespBean addMenu(Menus menus);

    RespBean<Menus> getMenuById(Integer menuId);

    RespBean<Integer> deleteMenuById(Integer menuId);

    RespBean<Integer> updateMenuById(Menus menus);
}
